package com.foreknow.service.impl;

import com.foreknow.dao.ConstantitemMapper;
import com.foreknow.entity.Constantitem;
import com.foreknow.service.ConstantitemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ConstantitemServiceImpl implements ConstantitemService {
    @Autowired
    ConstantitemMapper constantitemMapper;

    @Override
    public List<Constantitem> searchAll(String qurey) {
        return constantitemMapper.searchAll(qurey);
    }

    @Override
    public int Insert(Constantitem constantitem) {
        return constantitemMapper.Insert(constantitem);
    }

    @Override
    public int Delete(Integer id) {
        return constantitemMapper.Delete(id);
    }

    @Override
    public Constantitem selectByPrimaryKey(Integer id) {
        return constantitemMapper.selectByPrimaryKey(id);
    }

    @Override
    public int update(Constantitem constantitem) {
        return constantitemMapper.update(constantitem);
    }

    @Override
    public List<Constantitem> selectById(Integer id) {
        return  constantitemMapper.selectById(id);
    }
}
